package com.situ.user.quarzt;

import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.impl.StdSchedulerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//配置Quartz
@Configuration
public class QuartzConfig {

	@Bean
	public Scheduler scheduled() throws SchedulerException {
		return new StdSchedulerFactory().getScheduler();
	}
}
